package com.wenjiang.controller;

import com.wenjiang.service.DashboardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/dashboard")
public class DashBoardController {

    @Autowired
    DashboardService dashboardService;


    //获取基本信息
    @RequestMapping("/baseInfo")
    public  Object getBasicInfo(){
        return  dashboardService.baseInfo();
    }


    //获取进几个月的订单概况
    @RequestMapping("/getNearMonthInfo")
    public  Object getNearMonthPayInfo() {
        return dashboardService.getNearMonthPayCount();
    }

    //获取各个商品分类的售卖情况
    @RequestMapping("/getGoodTypeInfo")
    public  Object getTypeInfo(){
        return  dashboardService.getGoodTypeInfo();
    }




}
